<div class="row">
    <div class="col-md-5">
        <!--联系人列表功能模块-->
        <div class="row">
            <div class="col-sm-2">
                <i class="fa fa-search" ng-init="search=true" ng-click="search=true" data-toggle="tooltip" title="检索"></i>
            </div>
            <div class="col-sm-8" ng-show="search" >
                <input type="text" class="form-control" ng-model="contactFilterInfos.name">
            </div>
            <div class="col-sm-2">
                <i class="fa fa-plus" ng-init="search=true" data-toggle="tooltip" title="添加联系人" ng-click="search=false"></i>
            </div>
            <div class="col-sm-8" ng-show="!search" >
                <div class="row">
                    <div class="col-md-6"><button class="btn btn-info" ng-click="goSref('companyaddcontact')">新建联系人</button></div>
                    <div class="col-md-6"><button class="btn btn-info" ng-click="addContactsToCompany()">选择联系人</button></div>
                </div>
            </div>
        </div>
        <div class="text-center" style="margin-top: 10px">
            <button class="btn btn-{{containSubCompany?'success':'default'}}" ng-click="containSubCompanyChange()">包含其所有的下属单位</button>
        </div>
        <div style="padding-right:0;padding-left: 0;margin-left:0;margin-top: 15px">
            <h6 style="margin-left: 0">商业联系:</h6>
        </div>
        <div class="row btn-group" style="margin-left: 0;margin-right: 0" >
            <a style="padding-right: 9px;padding-left: 9px" class="btn btn-{{contactFilterInfos.businessConnection.kh?'primary':'default'}}" ng-click="contactFilterInfos.businessConnection.kh=!contactFilterInfos.businessConnection.kh">客户</a>
            <a style="padding-right: 9px;padding-left: 9px" class="btn btn-{{contactFilterInfos.businessConnection.hzhb?'info':'default'}}" ng-click="contactFilterInfos.businessConnection.hzhb=!contactFilterInfos.businessConnection.hzhb">合作伙伴</a>
            <a style="padding-right: 9px;padding-left: 9px" class="btn btn-{{contactFilterInfos.businessConnection.jzds?'danger':'default'}}" ng-click="contactFilterInfos.businessConnection.jzds=!contactFilterInfos.businessConnection.jzds">竞争对手</a>
            <a style="padding-right: 9px;padding-left: 9px" class="btn btn-{{contactFilterInfos.businessConnection.gys?'warning':'default'}}" ng-click="contactFilterInfos.businessConnection.gys=!contactFilterInfos.businessConnection.gys">供应商</a>
            <a style="padding-right: 9px;padding-left: 9px" class="btn btn-{{contactFilterInfos.businessConnection.qt?'success':'default'}}" ng-click="contactFilterInfos.businessConnection.qt=!contactFilterInfos.businessConnection.qt">其他</a>
        </div>
        <div style="padding-right:0;padding-left: 0;margin-left:0;margin-top: 15px">
            <h6 style="margin-left: 0">重要程度:</h6>
        </div>
        <div class="row btn-group" style="margin-left: 0;margin-right: 0" >
            <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{contactFilterInfos.importance.bxy?'success':'default'}}" ng-click="contactFilterInfos.importance.bxy=!contactFilterInfos.importance.bxy">不需要</a>
            <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{contactFilterInfos.importance.xy?'info':'default'}}" ng-click="contactFilterInfos.importance.xy=!contactFilterInfos.importance.xy">需要</a>
            <a style="padding-right: 12px;padding-left: 12px" class="btn btn-{{contactFilterInfos.importance.zy?'warning':'default'}}" ng-click="contactFilterInfos.importance.zy=!contactFilterInfos.importance.zy">重要</a>
            <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{contactFilterInfos.importance.hzy?'primary':'default'}}" ng-click="contactFilterInfos.importance.hzy=!contactFilterInfos.importance.hzy">很重要</a>
            <a style="padding-right: 10px;padding-left: 10px" class="btn btn-{{contactFilterInfos.importance.jqzy?'danger':'default'}}" ng-click="contactFilterInfos.importance.jqzy=!contactFilterInfos.importance.jqzy">极其重要</a>
        </div>
    </div>
    <div class="col-md-7">
        <div id="address-book">
            <div class="slider-content" style="height:480px;overflow:scroll">
                <!--contact table is here-->
                <table id="example-stats" class="table table-stats table-condensed table-striped table-sortable">
                    <thead>
                    <tr>
                        <th class="headerSortable headerSortUp">姓名</th>
                        <th class="headerSortable">电话</th>
                        <th class="headerSortable">别名</th>
                        <th class="headerSortable">qq</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr class="ss_tr_odd" ng-repeat="item in contactBaseInfos|filter:contactInfoFilter" ng-click="setContactInCompanyId(item.id);goSref('companycontactdetail')">
                        <td>{{item.baseInfo.name}}</td>
                        <td><i >{{item.baseInfo.mobileNumberList[0].value}}</i></td>
                        <td>{{item.baseInfo.alias}}</td>
                        <td>{{item.baseInfo.qq}}</td>
                    </tr>
                    </tbody>
                </table>
                <!--content over-->
            </div>
        </div>
    </div>
</div>